package self.wargon.springcloudstu.gateway.config;

import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.stereotype.Component;

@Component
public class UserRouteFilterGatewayFilterFactory extends AbstractGatewayFilterFactory<Object> {

    public UserRouteFilterGatewayFilterFactory() {
        super(Object.class);
    }

    @Override
    public GatewayFilter apply(Object config) {
        return new UserRouteFilter();
    }
}
